import PermissionMixin from "../../PermissionMixin"

export default {
  created() {
    const { time } = this.$route.params
    if (time) {
      this.timeDate = new Date(Number(time))
    }
  },
  mixins: [PermissionMixin],
  data() {
    return {
      timeDate: new Date(),
      options: {
        disabledDate(time) {
          return time.getTime() > Date.now()
        }
      }
    }
  }
}
